package top.kaoshanji.p1ch08a;

/**
 * 代码清单-p1ch08a-197页b：有两个参数的泛型类
 * author kaoshanji
 * ^_^
 * create time 2025/2/19 10:52
 */
public class PairV2<U, V> {

    U first;
    V second;

    public PairV2(U first, V second) {
        this.first = first;
        this.second = second;
    }

    public U getFirst() {
        return first;
    }

    public V getSecond() {
        return second;
    }
}
